﻿
<!doctype html>

<html>
<head>
    <meta charset="utf-8" />
    <title>KindEditor ASP.NET</title>
    <link rel="stylesheet" href="./themes/default/default.css" />
    <link rel="stylesheet" href="./plugins/code/prettify.css" />
    <script charset="utf-8" src="./kindeditor-all.js"></script>
    <script charset="utf-8" src="./lang/zh-CN.js"></script>
    <script charset="utf-8" src="./plugins/code/prettify.js"></script>
    <script>
		KindEditor.ready(function(K) {
			var editor1 = K.create('#content1', {
				cssPath : './plugins/code/prettify.css',
				uploadJson : './upload_json.ashx',
				fileManagerJson : './file_manager_json.ashx',
				allowFileManager : true,
				afterCreate : function() {
					var self = this;
					K.ctrl(document, 13, function() {
						self.sync();
						K('form[name=example]')[0].submit();
					});
					K.ctrl(self.edit.doc, 13, function() {
						self.sync();
						K('form[name=example]')[0].submit();
					});
				}
			});
			prettyPrint();
		});
    </script>
</head>
<body>
    <form id="example">
        <textarea id="content1" cols="100" rows="8" style="width:700px;height:200px;visibility:hidden;"></textarea>
        <br />
        <Button ID="Button1" type="button" value="提交内容" /> (提交快捷键: Ctrl + Enter)
    </form>
</body>
</html>
